package com.yun.newBlog.blog.config;

//import com.yun.consumer.KafkaConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.support.Acknowledgment;
import org.springframework.stereotype.Component;

import java.util.List;

//@Component
// public class StockKafkaConsumerConfig extends KafkaConsumerConfig {
public class StockKafkaConsumerConfig {
    //@Override
    protected void initKafkaConsumer() {
        //super.initKafkaConsumer();
    }

    //@Override
    protected void handle(List<ConsumerRecord> recordList, Acknowledgment acknowledgment) {
        if(recordList != null) {
            for(ConsumerRecord record : recordList) {
                System.out.println("record="+record.toString());
            }
        }
    }
}
